<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<HTML>
	<HEAD>
		<TITLE>Untitled Page</TITLE>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<META content="MSHTML 6.00.2900.5848" name=GENERATOR>
		 <SCRIPT language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></SCRIPT>
		<link href="../css/public.css" rel="stylesheet" style="text/css">
        <link href="../css/bunny.css" rel="stylesheet" type="text/css">
	</HEAD>
	<BODY
		style="BACKGROUND-POSITION-Y: -120px; BACKGROUND-IMAGE: url(../images/background.gif); BACKGROUND-REPEAT: repeat-x">
    <SCRIPT type=text/javascript>
		var theForm = document.forms['aspnetForm'];
		if (!theForm) {
		    theForm = document.aspnetForm;
		}
		function __doPostBack(eventTarget, eventArgument) {
		    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
		        theForm.__EVENTTARGET.value = eventTarget;
		        theForm.__EVENTARGUMENT.value = eventArgument;
		        theForm.submit();
		    }
		}
		function addlist(productId){
		  var num = document.getElementById("num"+productId).value; 
		  location.href="ask_addlist?productid="+productId+"&num="+num; 
		}
</SCRIPT>
<SCRIPT src="EmployeeMgr.files/WebResource.axd" type=text/javascript>
</SCRIPT>
<SCRIPT src="EmployeeMgr.files/ScriptResource.axd" type=text/javascript>
</SCRIPT>
<SCRIPT src="/EmployeeMgr.files/ScriptResource(1).axd" type=text/javascript>
</SCRIPT>
	<div id="layer4">
	  <form name="orderform" method="post" action="order_save.action">
	    <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR
						style="BACKGROUND-IMAGE: url(../images/bg_header.gif); BACKGROUND-REPEAT: repeat-x"
						height=47>
              <TD width=15 height="47"><SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"> </SPAN> </TD>
              <TD width="1280"><SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl2.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"> </SPAN> <SPAN
								style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hb.gif); PADDING-BOTTOM: 10px; COLOR: white; PADDING-TOP: 10px; BACKGROUND-REPEAT: repeat-x; HEIGHT: 47px; TEXT-ALIGN: center; 0 px: "> 添加订单</SPAN><SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hr.gif); WIDTH: 60px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"></SPAN> </TD>
              <TD
							style="BACKGROUND-POSITION: 50% bottom; BACKGROUND-IMAGE: url(../images/main_rc.gif)"
							width=1></TD>
            </TR>
            <TR>
              <TD style="BACKGROUND-IMAGE: url(../images/main_ls.gif)">&nbsp;</TD>
              <TD
							style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; COLOR: #566984; PADDING-TOP: 10px; BACKGROUND-COLOR: white"
							vAlign=top align="left"><DIV class="STYLE1">
                  <p class="STYLE2">订单主要信息</p>
                  <table width="100%" border="0">
                    <tr>
                   
                      <td width="10%">订单编号：</td>
                      <td width="20%"><s:property value="pageHead"/></td>
                      <td width="10%">订货单位：</td>
                      <td width="30%" align="left"> <s:property value='user.enterprise.name'/></td>
                      <td width="10%">订货日期：</td>
                      <td width="20%"><label>
                        <input type="text" name="writeDate"  onfocus="WdatePicker()" value="<s:property value='orderDate'/>">
                      </label></td>
                    </tr>
                    <tr>
                      <td height="37">付款人：</td>
                      <td height="37"><s:property value="user.name"/></td>
                      <td height="37"><input name="Submit322" type="button" class="buttonCss" onClick="location.href='order_findUserAll.action';" value="选择"></td>
                      <td height="37">&nbsp;</td>
                      <td height="37">&nbsp;</td>
                      <td height="37">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="37">总价格：</td>
                      <td height="37"><s:property value="totalPrice"/>
                      元</td>
                      <td height="37">付款方式：</td>
                      <td height="37"><label>
                      <select name="order.payment">
                        <option value="先付款">先付款</option>
                        <option value="后付款">后付款</option>
                      </select>
                      </label></td>
                      <td height="37">运输方式：</td>
                      <td height="37"><select name="order.transport">
                        <option value="快递">快递</option>
                        <option value="铁路">铁路</option>
                        <option value="汽运物流">汽运物流</option>
                        <option value="中铁快运">中铁快运</option>
                      </select></td>
                    </tr>
                    <tr>
                      <td height="37">运费支付方：</td>
                      <td height="37"><label>
                        <input name="order.defrayfreightway" type="radio" value="1" checked>
                      己方
                      <input type="radio" name="order.defrayfreightway" value="2">
                      他方</label></td>
                      <td height="37">发票是否随货：</td>
                      <td height="37">
					  <label>
					  <input name="order.invoice" type="radio" value="1">
                        是
                          <input name="order.invoice" type="radio" value="2" checked>
                      否					  </label>					  </td>
                      <td height="37">是否送货上门：</td>
                      <td height="37">
					  <label>
					  <input name="order.deliver" type="radio" value="1" checked>
						是
  						<input type="radio" name="order.deliver" value="2">
						否						</label>						</td>
                    </tr>
                    <tr>
                      <td height="37" colspan="6">状态：新创建&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备注：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <label>
                        <textarea name="order.remark" cols="50" rows="2"><s:property value="remark"/></textarea>
                      </label></td>
                    </tr>
                </table>
				<p>
                <span class="STYLE2">订单详细信息</span>                &nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                         <input name="Submit3" type="button" class="Bigbutton" value="导入询价单" onClick="location.href='order_findAskAll.action?searchType=0'">
                                         <input name="Submit33" type="submit" class="saveButton" value="保存">
                                         <input name="Submit34" type="button" class="buttonCss" value="撤销" onClick="location.href='order_reset.action'">
                </p>
                                         <TABLE class=gridView1 id=ctl00_ContentPlaceHolder2_GridView1
									style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellSpacing=0
									rules=all border=1 >
                                           <TBODY>
                                             <TR>
                                               <TH width="50" class=gridViewHeader style="WIDTH: 50px" scope=col>&nbsp; </TH>
                                               <TH width="231" class=gridViewHeader scope=col>商品编号</TH>
                                               <TH width="212" class=gridViewHeader scope=col>商品名称</TH>
                                               <TH width="183" class=gridViewHeader scope=col>规格型号</TH>
                                               <TH width="67" class=gridViewHeader scope=col>单位</TH>
                                               <TH width="184" class=gridViewHeader scope=col>生产厂家</TH>
                                               <TH width="87" class=gridViewHeader scope=col>数量</TH>                                        
                                               <TH width="94" class=gridViewHeader scope=col>价格（元）</TH>
                                               <TH width="114" class=gridViewHeader scope=col>操作</TH>
                                             </TR>
                                             <s:iterator value="inquiry.inquirylists">
                                             
                                             	<TR>
                                               <TD class=gridViewItem style="WIDTH: 50px"><IMG src="EmployeeMgr.files/bg_users.gif"> </TD>
                                               <TD class=gridViewItem><s:property value="commodity.sn"/></TD>
                                               <TD class=gridViewItem><s:property value="commodity.name"/></TD>
                                               <TD class=gridViewItem><s:property value="commodity.specifications"/></TD>
                                               <TD class=gridViewItem><s:property value="product.company"/></TD>
                                               <TD class=gridViewItem><s:property value="product.factory"/></TD>
                                               <TD class=gridViewItem><s:property value="number"/></TD>                       
                                               <TD class=gridViewItem><s:property value="supplyprice"/></TD>
                                               <TD class=gridViewItem>
											   		<img src="../images/bg_button_del.gif" alt="删除" onClick="location.href='order_deleteAslList.action?inquirylistId=<s:property value="id"/>'"/>
											   </TD>
                                               </TR>
                                             </s:iterator>
                                       
                                           </TBODY>
                                         </TABLE>
              </DIV></TD>
              <TD style="BACKGROUND-IMAGE: url(../images/main_rs.gif)"></TD>
            </TR>
            <TR
						style="BACKGROUND-IMAGE: url(../images/main_fs.gif); BACKGROUND-REPEAT: repeat-x"
						height=10>
              <TD style="BACKGROUND-IMAGE: url(../images/main_lf.gif)"></TD>
              <TD style="BACKGROUND-IMAGE: url(../images/main_fs.gif)"></TD>
              <TD style="BACKGROUND-IMAGE: url(../images/main_rf.gif)"></TD>
            </TR>
          </TBODY>
        </TABLE>
      </form>
    </DIV>					  				
	</BODY>
</HTML>
